import request from '@/utils/request'

// 查询企业列表
export function getEnterpriseAll(query) {
  return request({
    url: '/enterprise/enterpriseXx/getEnterpriseAll',
    method: 'get',
    params: query
  })
}

// 查询企业列表
export function getAll() {
  return request({
    url: '/enterprise/enterpriseXx/getAll',
    method: 'get',
  })
}

// 添加企业
export function addEnterprise(form) {
  return request({
    url: '/enterprise/enterpriseXx/addEnterprise',
    method: 'post',
    data: form
  })
}
// 修改企业
export function updateEnterprise(form) {
  return request({
    url: '/enterprise/enterpriseXx/updateEnterprise',
    method: 'put',
    data: form
  })
}

// 删除企业
export function delEnterprise(id) {
  return request({
    url: '/enterprise/enterpriseXx/delEnterprise/' + id,
    method: 'delete',
  })
}
// id查企业
export function getEnterpriseById(id) {
  return request({
    url: '/enterprise/enterpriseXx/getEnterpriseById/' + id,
    method: 'get',
  })
}
